const Service = require("egg").Service;
const axios = require("axios");

class GitHubService extends Service {
  async index({ pageSize = 1, pageNum = 1 }) {
    return axios.get(
      `https://api.github.com/users/tj/followers?page=${pageNum}&per_page=${pageSize}`
    );
  }
}
module.exports = GitHubService;
